<template>
  <el-form inline class="host-search-form">
    <slot name="search-content"></slot>

    <el-form-item>
      <el-button type="primary" @click="onSearch">搜索</el-button>
      <el-button @click="onReset">重置</el-button>
    </el-form-item>
  </el-form>
</template>

<script setup lang="ts">
import { reactive, defineEmits } from 'vue';

const emit = defineEmits(['search', 'reset']);

function onSearch() {
  emit('search');
}
function onReset() {
  emit('reset');
}
</script>

<style scoped>
.host-search-form {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #fff;
  margin-bottom: 16px;
}
.el-form-item {
  margin-right: 24px;
  margin-bottom: 12px;
}
</style>
